package com.javachmapi.springbootjsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by 宋利军
 */
@Controller
public class IndexController {

    @RequestMapping("/test")
    public String index(Model model){
        System.out.println("进入index····");
        model.addAttribute("msg", "Spring boot 集成 jsp.");
        return "index";
    }

}
